package com.zdkj.subway.check.controller.subwayRat.conductorDifferences.cheZhan;

import com.alibaba.fastjson.JSONObject;
import com.zdkj.subway.check.result.Result;
import com.zdkj.subway.check.service.SwAuTvmBoxAmountDifferenceService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 线网层级确认-TVM票款差异-TVM票款差异通知
 * 2-2-2、TVM票款差异分钱箱差异审核 SW_AU_TVM_BOX_AMOUNT_DIFFERENCE
 */
@RequestMapping("/checkNew")
@RestController
@Slf4j
public class SwAuTvmBoxAmountDifferenceCtrl {



    @Resource
    private SwAuTvmBoxAmountDifferenceService swAuTvmBoxAmountDifferenceService;

    /**
     * TVM票款差异分钱箱差异审核 列表
     * @param jsonObject
     * @return
     */
    @RequestMapping("/getSwAuTvmBoxAmountDifferenceList")
    @ApiOperation(value = "TVM票款差异分钱箱差异审核 列表", notes = "TVM票款差异分钱箱差异审核 列表")
    public Result getSwAuTvmBoxAmountDifferenceList(@RequestBody JSONObject jsonObject){
        return swAuTvmBoxAmountDifferenceService.getSwAuConductorNoticeList(jsonObject);
    }

    /**
     * TVM票款差异分钱箱差异审核 单独查询
     * @param jsonObject
     * @return
     */
    @RequestMapping("/getSwAuTvmBoxAmountDifference")
    @ApiOperation(value = "TVM票款差异分钱箱差异审核 单独查询", notes = "TVM票款差异分钱箱差异审核 单独查询")
    public Result getSwAuTvmBoxAmountDifference(@RequestBody JSONObject jsonObject){
        return swAuTvmBoxAmountDifferenceService.getSwAuConductorNotice(jsonObject);
    }

    /**
     * TVM票款差异分钱箱差异审核 修改
     * @param jsonObject
     * @return
     */
    @RequestMapping("/updateSwAuTvmBoxAmountDifference")
    @ApiOperation(value = "TVM票款差异分钱箱差异审核 修改", notes = "TVM票款差异分钱箱差异审核 修改")
    public Result updateSwAuTvmBoxAmountDifference(@RequestBody JSONObject jsonObject){
        return swAuTvmBoxAmountDifferenceService.updateSwAuConductorNotice(jsonObject);
    }
}
